import { createBrowserRouter } from "react-router";
import App from "../App.tsx";
import Test from "../views/test.tsx";
export const router = createBrowserRouter([
  {
    path: "/",
    Component: App,
    children: [
      {
        path: "/test",
        loader: async () => {
          // return data from here
          return {
            records: await Promise.resolve({ test: "test" }),
          };
        },
        Component: Test,
      },
    ],
  },
]);
